Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) feat(navigation): enhance setDestination and setDestinations methods with routeToken support #383

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stealkiller06
Copy link
Contributor

@stealkiller06 stealkiller06 commented Dec 19, 2024

…with routeToken support

  • Added routeToken parameter to setDestination and setDestinations methods in NavModule.
  • Updated TypeScript definitions to include routeToken in NavigationController interface.
  • Implemented logging for routeToken usage in setDestinations method.
  • Adjusted logic to prioritize routeToken over routingOptions when setting destinations.

TODO:

  • Add android implementation
  • Add unit tests
  • Update documentation
  • Add example usage
  • Remove WIP status when ready

This change improves navigation flexibility by allowing pre-calculated routes.

Fixes #343

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

…with routeToken support

- Added routeToken parameter to setDestination and setDestinations methods in NavModule.
- Updated TypeScript definitions to include routeToken in NavigationController interface.
- Implemented logging for routeToken usage in setDestinations method.
- Adjusted logic to prioritize routeToken over routingOptions when setting destinations.

This change improves navigation flexibility by allowing pre-calculated routes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for routeToken Parameter in react-native-navigation-sdk
2 participants